#ifndef festival_UTILS_H
#define festival_UTILS_H

#include <stdio.h>
#include <string>
#include <vector>

#include "festival/Voice.h"

const char cmdFestivalBase[] = "festival -b '%s'";
const char cmdFestivalVoiceList[] = "(print_string (voice.list))";

// This function executes a command through Festival's command line interface.
// The command should be written in Scheme format. (See http://festvox.org/docs/manual-1.4.3/festival_8.html#SEC21)
// NOTE: It is the responsibility of the calling function to close the file handle.
FILE* execFestivalCmd(const char *cmd);

bool updateFestivalVoiceSet(std::vector<festival::Voice>* p_voicesSet);

#endif // festival_UTILS_H defined
